package com.qingcheng.feign;

import com.qingcheng.pojo.goods.Category;
import com.qingcheng.pojo.goods.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-goods")
@Component
public interface GoodsFegin {

    @GetMapping (value = "/goods/sku/findById")
    Sku findById(@PathVariable("skuId") String username);

    @GetMapping (value = "/goods/category/findById")
    Category findBycategoryId(@PathVariable("id") Integer id);

}
